package com.example.service.impl;

import com.example.annotation.MyAutowired;
import com.example.annotation.MyBean;
import com.example.service.IBookService;
import com.example.service.IUserService;

@MyBean
public class UserServiceImpl implements IUserService {

    @MyAutowired
    private IBookService bookService;

    @Override
    public String getUserName(int id) {
        String bookName = bookService.getBookName(id);
        System.out.println("id:" + id + "; " + "bookName:" + bookName);
        return "name" + id;
    }

}
